import request from '@/axios';

/**
 * 获取月评分分数
 * @returns {Promise<AxiosResponse<any>> | *}
 */
export const getAreaMonthsScores = () => {
  return request({
    url: '/restaurant/dashboard/areaMonthsScores',
    method: 'get'
  });
};


export const getIncome = () => {
  return request({
    url: '/restaurant/dashboard/income',
    method: 'get'
  });
};
/**
 * 获取数据统计
 * @returns {Promise<AxiosResponse<any>> | *}
 */
export const getDataCounts = () => {
  return request({
    url: '/restaurant/dashboard/dataCounts',
    method: 'get'
  });
};

/**
 * 月收入支出统计
 * @returns {Promise<AxiosResponse<any>> | *}
 */
export const getMonthIncomeExpenditureStatistics = () => {
  return request({
    url: '/restaurant/dashboard/monthIncomeExpenditureStatistics',
    method: 'get'
  });
};


/**
 * 日收入支出统计
 * @returns {Promise<AxiosResponse<any>> | *}
 */
export const getDayIncomeExpenditureStatistics = () => {
  return request({
    url: '/restaurant/dashboard/dayIncomeExpenditureStatistics',
    method: 'get'
  });
};


/**
 * 任务统计
 * @returns {Promise<AxiosResponse<any>> | *}
 */
export const getTaskStatistics = () => {
  return request({
    url: '/restaurant/dashboard/taskStatistics',
    method: 'get'
  });
};

/**
 * 任务统计
 * @returns {Promise<AxiosResponse<any>> | *}
 */
export const getAttendanceStatistics = () => {
  return request({
    url: '/restaurant/dashboard/attendanceStatistics',
    method: 'get'
  });
};
/**
 * 日均人效
 * @returns {Promise<AxiosResponse<any>> | *}
 */
export const getDailyHumanEfficiency = () => {
  return request({
    url: '/restaurant/dashboard/dailyHumanEfficiency',
    method: 'get'
  });
};
/**
 * 月均人效
 * @returns {Promise<AxiosResponse<any>> | *}
 */
export const getMonthlyHumanEfficiency = () => {
  return request({
    url: '/restaurant/dashboard/monthlyHumanEfficiency',
    method: 'get'
  });
};